/**
 * Bestpay.com.cn Inc.
 * Copyright (c) 2011-2020 All Rights Reserved.
 */
package com.suxiaoxiao.springbootlearn.designpattern.statepattern.goodcode.rmi.server;

import com.suxiaoxiao.springbootlearn.designpattern.statepattern.goodcode.State;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * desc
 *
 * @author zhaorongzhang
 * @version GumballMachineRemote.java, v 0.1 2020/1/11 10:07 下午 zhaorongzhang Exp $$
 */
public interface GumballMachineRemote extends Remote {

    /**
     * 获取糖果机数量
     * @return
     * @throws RemoteException
     */
    int getCount() throws RemoteException;

    /**
     * 获取位置信息
     * @return
     * @throws RemoteException
     */
    String getLocation() throws RemoteException;

    /**
     * 获取状态
     * @return
     * @throws RemoteException
     */
    State getState() throws RemoteException;

}